﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace SWGeneracionE.Models.Repositories
{

    public interface IMemoryRepository<T> : IDisposable where T : class
    {

        List<T> GetAll();
        List<T> FindBy(Func<T, bool> predicate);
        void Add(T entity);
        void Delete(T entity);

        void Save();
    }

}